package io.zhengsh.juc._0volatile1;

public class VolatileBooleanTest {
    public static volatile boolean start = false;

    public static void doWork() {
        while (start) {
            // todo other code
            System.out.println("start is true");
        }
    }
}